﻿Imports MyAddin_20.Common
Imports System.Runtime.InteropServices

<GuidAttribute("30C887BD-0B94-46F2-ACF6-9B12B524558C"), ProgId("MyAddin.Addin_3.5"), ComVisible(True)> _
<AddinTitle("MyAddin (3.5)"), AddinSummary("MyAddin (3.5) summary")>
<AddinEnvironmentCategory(SECATIDS.CATID_SEAllDocumentEnvrionments)>
Public Class Addin
    Implements SolidEdgeFramework.ISolidEdgeAddIn

    Private _objApplication As SolidEdgeFramework.Application

    Public Sub OnConnection(Application As Object, ConnectMode As SolidEdgeFramework.SeConnectMode, AddInInstance As SolidEdgeFramework.AddIn) Implements SolidEdgeFramework.ISolidEdgeAddIn.OnConnection
        _objApplication = Application
    End Sub

    Public Sub OnConnectToEnvironment(EnvCatID As String, pEnvironmentDispatch As Object, bFirstTime As Boolean) Implements SolidEdgeFramework.ISolidEdgeAddIn.OnConnectToEnvironment

    End Sub

    Public Sub OnDisconnection(DisconnectMode As SolidEdgeFramework.SeDisconnectMode) Implements SolidEdgeFramework.ISolidEdgeAddIn.OnDisconnection

    End Sub

    <ComRegisterFunctionAttribute()> _
    Public Shared Sub RegisterFunction(ByVal t As Type)
        Registration.CommonRegisterFunction(t)
    End Sub

    <ComUnregisterFunctionAttribute()> _
    Public Shared Sub UnregisterFunction(ByVal t As Type)
        Registration.CommonUnregisterFunction(t)
    End Sub
End Class
